<!DOCTYPE html>
<html>

<head>
    <title>worker学习</title>
</head>

<body>


    <script>
        //真正的异步 123

        if (typeof (Worker) !== "undefined") {
            
            // Yes! Web worker support!
            // Some code.....
        }
        else {
            // Sorry! No Web Worker support..
        }
    </script>
</body>

</html>